package cn.com.cetccst.basiccollection;

import android.content.Context;

import java.util.UUID;

import cn.com.cetccst.basiccollection.basicinfo.BasicDeviceInfoOwner;

//todo delete
public class MockDeviceInfoOwner extends BasicDeviceInfoOwner {
    public MockDeviceInfoOwner(Context context) {
        super(context);
    }

    @Override
    protected Object getInfoByMdm(String key, String... extras) {
        if (BasicInfoKey.ROOT_STATUS.equals(key)) {
            return "MOCK-ROOT_STATIC:" + UUID.randomUUID().toString();
        }
        if (BasicInfoKey.SN.equals(key)) {
            return "MOCK-SN:" + UUID.randomUUID().toString();
        }
        return "MOCK-SN:" + UUID.randomUUID().toString();
    }
}
